<template>
  <div class="home">
    <!-- 头部 -->
    <div class="home-top">
      <div>
        <h1>欢迎来到中国民用航空飞行学院检举官网！</h1>
        <div></div>
      </div>
      <div>
        <div @click="goAccuse()">
          <i class="el-icon-s-order"></i>
          <span>检举举报</span>
        </div>
      </div>
    </div>
    <!-- 中间内容 -->
    <div class="home-main">
      <div class="home-swagger">
        <el-carousel
          height="26vw"
          trigger="click"
        >
          <el-carousel-item
            v-for="(item,index) in imgList"
            :key="index"
          >
            <img :src="item.url">
          </el-carousel-item>
        </el-carousel>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      infoDiaVisible: true, // 举报须知弹窗
      isRead: false, // 是否阅读
      radio: '1',
      accuse: {
        phone: '',
      },
      imgList: [
        { url: require('../assets/image/swiper/bg1.jpg') },
        { url: require('../assets/image/swiper/bg2.jpg') },
        { url: require('../assets/image/swiper/bg3.jpg') },
        { url: require('../assets/image/swiper/bg4.jpg') },
      ]
    }
  },
  created() {

  },
  methods: {
    // 展示举报须知弹窗
    showInfo() {
      this.infoDiaVisible = true
    },
    // 跳转到新增检举界面
    goAccuse() {
      this.$router.push('/new')
    },
    // 举报信息填写弹窗关闭
    handleClose() {
    },
  }
}
</script>

<style scoped lang="less">
.home {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.home-top {
  width: 100%;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #030f24;
  > div {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    &:first-child {
      display: flex;
      align-items: center;
      background: #c41d17;
      width: 350px;
      position: relative;
      h1 {
        color: #ffffff;
        font-size: 18px;
        line-height: 21px;
        margin: 0;
      }
      > div {
        width: 0px;
        height: 0px;
        position: absolute;
        right: -40px;
        border: 20px solid transparent;
        border-left: 20px solid #c41d17;
        border-top: 20px solid #c41d17;
      }
    }
    &:last-child {
      display: flex;
      align-items: center;
      > div {
        display: flex;
        align-items: center;
        cursor: pointer;
        margin-right: 20px;
        i {
          color: #ffffff;
          font-weight: bold;
          margin-right: 6px;
        }
        span {
          color: #ffffff;
          font-size: 12px;
        }
      }
    }
  }
}
.home-main {
  .el-carousel__item {
    img {
      width: 100%;
    }
  }
}
.el-row {
  display: flex;
  align-items: center;
  position: relative;
}
.accuse-dialog {
  b {
    font-weight: normal;
    font-size: 12px;
    position: absolute;
    top: 50px;
    color: #fc424d;
  }
  em {
    color: #fc424d;
    position: absolute;
    left: -8px;
    font-style: normal;
  }
}
</style>
